/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ElectricToothbrush {
    static categoryCode = '010060011';

    static categoryName = '电动牙刷';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return ElectricToothbrush.categoryCode;
    }

    get categoryName() {
        return ElectricToothbrush.categoryName;
    }

    getIntensity(params) {
        return command({
            method: 'getIntensity',
            methodId: 'pGoxGSzd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'p1vZOVqZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pZgRqLKr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIntensity(params) {
        return command({
            method: 'setIntensity',
            methodId: 'ppAXzdHC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'pUPQoZFA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH39r8U',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ElectricToothbrush;
